
package org.cm.xmloperationsOLD1;

import org.japril.jutil.xmloperations.XmlOperation;

public class ValidatesXmlOperation implements XmlOperation
{
  public ValidatesXmlOperation()
  {

  }

  public String getName()
  {
    return "validates";
  }

  public String getDesc()
  {
    return null;
  }

  public int getPathCount()
  {
    return 1;
  }

  public String getPath(int idx)
  {
    switch(idx)
    {
      case 0 : return "/cm/orb[@valid=\"true\"]";
      default : throw new IndexOutOfBoundsException();
    }

  }

  public void perform(String xml)
  {
    System.out.println(getName()+" performs");
  }

}
